package com.ssm.zhihu_ssm.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.data.annotation.CreatedDate;

import java.util.Date;

public class LetterReturn {


//    私信界面要用的数据的
    private int id; //评论的id，也就是在评论中的位置
    private String nickname;//跟用户发私信人的名字
    private String img;//头像
    private int otherid;////跟用户发私信人的id
    private int uid;//发送方id
    private int fromID;//接收方
    private String content;//问题内容
    @CreatedDate
    @JsonFormat(pattern="yyyy-MM-dd hh:mm:ss")
    private Date time;//提问时间

    public int getOtherid() {
        return otherid;
    }

    public void setOtherid(int otherid) {
        this.otherid = otherid;
    }


    //    public int getCommentid() {
//        return commentid;
//    }
//
//    public void setCommentid(int commentid) {
//        this.commentid = commentid;
//    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public int getFromID() {
        return fromID;
    }

    public void setFromID(int fromID) {
        this.fromID = fromID;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public String getNickname() {
        return nickname;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

}
